<?
echo form_open ( 'admin/wallpaper_categeory/root_forimages' );
?>
<table align="center" width="430" id="tableadmin">
	<thead>
		<h2 style="color:olive">Add Wallpaper Image
		</h2>
	
	</thead>

<?
$js = 'onchange="submit();"';
?>

<?
echo form_hidden ( 'parentid', $parentid )?>

<tr>
		<td width="150">
<?form_label ( 'Select root categeory', 'parentid' );
?>
</td>
		<td width="290">
<?
echo form_dropdown ( 'parentid', $options1, $parentid, $js );
?>
</td>
	</tr>

</table>
</form>
<?
echo form_open_multipart ( 'admin/wallpaper_categeory/addImage' );
?>
<table align="center" width="430" id="tableadmin">
	<tr>
		<td align="left" width="150">
<?
echo form_label ( 'Select sub categeory', 'id' );
?>
</td>
		<td width="290">
<?
echo form_dropdown ( 'parentid1', $options );
?>
</td>
	</tr>
	<tr>
		<td>
<?
echo form_label ( 'Select title for image', 'title' );
?>
</td>
		<td>
<?
echo form_input ( 'title', '' );
?>

</td>
	</tr>
	<tr>
		<td>
<?
echo form_label ( '1600 X 1200 size');
?>
</td>
		<td>
<?=form_upload ( 'image1' );?>
</td>
	</tr>
	
	
	<tr>
		<td>
<?
echo form_label ( '1024 X 768 size' );
?>
</td>
		<td>
<?=form_upload ( 'image2' );?>
</td>
	</tr>
	<tr>
		<td>
<?
echo form_label ( '800 X 600 size' );
?>
</td>
		<td>
<?=form_upload ( 'image3' );?>
</td>
	</tr>
	
	
	<tr>
		<td></td>
		<td>
<?php
if (isset ( $upload )) {
	?>

<?
	echo form_submit ( 'mysubmit', 'upload another file' );
	

} else {
	echo form_submit ( 'mysubmit', 'upload' );}?>
</td>
	</tr>


</table>
</form>

